package io.renren.modules.sys.dao;

import io.renren.modules.sys.entity.EvaluateEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.sys.entity.EvaluateVOEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 评论表
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-11-11 17:27:53
 */
@Mapper
public interface EvaluateDao extends BaseMapper<EvaluateEntity> {
    List<EvaluateVOEntity> querylistByParams(@Param("dname") String dname, @Param("startime")String startime, @Param("endtime")String endtime
            , @Param("currPage")int currPage, @Param("pageSize")int pageSize);

    int queryListcount(@Param("dname") String dname, @Param("startime")String startime, @Param("endtime")String endtime);

    EvaluateVOEntity queryInfoById(@Param("id") Integer id);
}
